package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 入库单明细表
 * </p>
 *
 * @author Mr.Zhang
 * @since 2025-03-12
 */
@Data
@TableName("gather_details")
public class GatherDetails implements Serializable {

    private static final long serialVersionUID=1L;

    //@ApiModelProperty(value = "主键，自增id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //@ApiModelProperty(value = "入库单id")
    private Integer gatherId;

    //@ApiModelProperty(value = "商品id")
    private Integer productId;

    //@ApiModelProperty(value = "供货商id")
    private Integer supplierId;

    //@ApiModelProperty(value = "数量")
    private Integer amount;

    //@ApiModelProperty(value = "仓库id")
    private Integer stockId;

    //@ApiModelProperty(value = "单价")
    private Float price;

    //@ApiModelProperty(value = "小计")
    private Float subTotal;

    //@ApiModelProperty(value = "实际入库数量")
    private Float realAmount;

    @TableField(exist = false)
    private Gather gather;

    @TableField(exist = false)
    private Product product;

    @TableField(exist = false)
    private Supplier supplier;

    @TableField(exist = false)
    private Stock stock;
}
